<template>
  <div id="app" ref="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted () {
    // document.onselectstart = new Function("event.returnValue=false");
    this.$refs.app.addEventListener('copy', (event) => {
      console.log('禁止复制')
      event.preventDefault()
    })
    this.$refs.app.addEventListener('cut', (event) => {
      console.log('禁止剪切')
      event.preventDefault()
    })
  }
}
</script>

<style lang="scss" scoped>
.app {
  width: 100%;
}
</style>
